<div class="layui-layout layui-layout-admin">
    <!--顶部导航-->
    <div class="layui-header">
        <div class="layui-logo" id="logo-title">
            <a href="">
                <!--<svg t="1602505743443" class="icon" viewBox="0 0 1025 1024" version="1.1"-->
                <!--xmlns="http://www.w3.org/2000/svg" p-id="5829" width="48" height="48">-->
                <!--<path d="M500.642 190l-4.296 0.035c-134.347 2.18-243.903 106.424-254.627 238.633l-0.02 0.264-1.993 0.278C142.006 443.546 67 527.77 67 629.529 67 741.35 157.577 832 269.31 832h487.38C868.424 832 959 741.35 959 629.529l-0.027-3.348c-1.66-102.48-79.397-186.452-179.153-197.815l-1.466-0.154-0.334-3.754C765.202 292.853 654.34 190 519.473 190h-18.831z"-->
                <!--fill="#d4a778" p-id="5830"></path>-->
                <!--</svg>-->
                <span>{$system.system_name|default=''}</span>
            </a>
        </div>
        <ul class="layui-nav layui-layout-left cp-left-header-nav">
            <li class="layui-nav-item">
                <a href="javascript:;" class="refmenu">刷新菜单</a>
            </li>
            <li class="layui-nav-item">
                <a href="{:url('index/index/index')}" target="_blank">前台主页</a>
            </li>
            <li class="layui-nav-item">
                <a href="javascript:openHtml('{:url("admin/index/home")}');">后台主页</a>
            </li>
            <li class="layui-nav-item">
                <a href="javascript:openHtml('{:url("admin/system.setting/clearCache")}');">清除缓存</a>
            </li>
        </ul>
        <ul class="layui-nav layui-layout-right nav-right">
            <li class="layui-nav-item">
                <a href="javascript:;" id="refIframe">
                    <strong>
                        <i class="layui-icon layui-icon-refresh"></i>
                    </strong>
                </a>
            </li>
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="{:_get_image_preview_url(get_user('avatar'))}" class="layui-nav-img">
                    {:get_user('username')}
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="javascript:openHtml('{:url("admin/system.administrator/editadmin",["id"=>get_user("id")])}');">修改资料</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item">
                <a href="javascript:logout('{:url("admin/system.setting/logout")}');">退出系统</a>
            </li>
        </ul>
    </div>
    <!--左侧菜单导航-->
    <div id="hxNavbar"></div>
    <!--主体内容-->
    <div class="layui-body" id="layui-body">
        <iframe src="{:url('admin/index/home')}" frameborder="0" id="iframe" class="layui-col-md12"></iframe>
    </div>
</div>
<script>
    window.CONFIG.MENU_URL = '{:url("admin/system.menu/getMenu")}'
</script>
<script src="/static/admin/js/layout.js?v={$version}"></script>
